package com.tjetc.myservlet;

import java.io.OutputStream;

/**
 * 用来封装响应
 *
 * @author gaoyongxiang
 * @version v1.0
 * @date 2025/9/1
 */
public class MyHttpResponse {
    private OutputStream outputStream;

    // 为了方便：直接将响应头进行封装了
    public static final String respHeader = """
            HTTP/1.1 200 OK
            Content-Type: text/html;charset=utf-8
            
            """;
    // 简化：处理乱码方法

    public MyHttpResponse(OutputStream outputStream) {
        this.outputStream = outputStream;
    }

    public OutputStream getOutputStream() {
        return outputStream;
    }

}